Login, register working, and rearranged source files to match