Changed file name and added redirection when not logged in