added logout in header.xml
added application logic for login, Messages.java