added portrait only code for login screen