Fixed some bugs

I have fixed the following bugs:
- User was not able to log in when latch active but not configured for that user
- Unpair page was not showing messages when unpairing account
- Latch configuration was not removed from latch userprofile table after unpairing the account