Moves login and logout function binding to script file