So... "login" is a noun and "log in" is the verb. This function logs someone in, so the pedant in me would prefer this to be "log_in" or "authenticate" or "authentify" or something like that.