Login class added and saved to db as an object