Changing sign in button and improving code