Update register/login/logout

Added validation and constraints on input data