Timeout session (middleware) and sending email with password after the creation of an user