(new) added new changfes to loginviewcontroller and return statements