added method register user