Login activity

fix preferences