replaced password textbox with passwordbox and set the IsDefault on the login button so that its command execute on the ENTER key press.