fixed bug when user does not submit anything