Login function set up

But running into the no-access-control problem, almost positive I've fixed it earlier and it was a no-brainer but I've got to check