Web application with working login connected to db