Module for user login and registration