Main page working- login isnt