Login code style changes