added some comments, changed style to follow style guideline, hides keyboard when signing in.
fixed note hiding bug and made note only one line for beta version
fixed codes to fit style guideline and added comments to codes