login controller finalized.