Add delay to anon requests
Implement login
Reworked the authorization function