Fixed bug for guest user which can login without authentication