renamed files. added post functions for username and password