Added support for user login