Modified Login for tablet