Changed logout and error messages to noty