basic button functionality and checkng user input for sign in