log in by pressing enter key