Server files which work with login function