fixed bugs in login page and loading bar
server code added