added Message class for displaying message box and now login form is working fine