changed login controller