Update: register, login and redirect methods