Login & register module in angular js