add some logic in login and register
change some detail about header
fix the bug in Apr 4