Moved alerts below input and beautified HTML