added initial support for user authentication