Remove login page after logging in

Otherwise people can print out password by calling $('#password').val()
Same thing with Register and Change Password