autolayout fixes for login screen, removed some unused login code