login on register, small fixes in form validation