fixed profile bug #121 and add success/error message on login