Started combining login forms to one form function