added migrate file
modified a few files
fixed login and register pages