User management

work done for user authentication including fixes for the UI