complete the login and index
minor fix on signup form to be hidden when already login