Finished register -activity
Added small functions for checking internet connection, validating email etc