Fix bug with rendering login page