a commit with some login function, had to redo all of it :(