refactored button positions in add post and login page
created a userFactory, refactored the index.html, added constant to main.js