added page-object gem and incorporated it into login method