login has better functionality, supports admin login