updated user entity, refacotred register type added user type
updated user registration and security componenets