submission and loggin