porting login functionality to med match homepage