Working webapp with login from database