added frontend for user login; fixed form param issue