Added function to submit forum at enter button

Added function for login and register. When pressing enter it will
submit.