update credential model + add default header for ajax requests
Implemented logout functionality