added support for user authentication