fixed login and rega