added some rules for login on server side: If username=password='admin' you can authorized and redirect to content page. Another case you will get error.