Gets data from inputs and send them to the API for user validation, then routes to the next screen with token key