reorganize sources and add user auth info in login file