added separate login controller